/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.marcelo.agro.actions;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import org.marcelo.comun.habilidades.CSVImporter;

import org.openide.awt.ActionRegistration;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionID;
import org.openide.util.NbBundle.Messages;

@ActionID(category = "Root",
id = "org.marcelo.agro.actions.ImportFromCVS")
@ActionRegistration(displayName = "#CTL_ImportFromCVS")
@ActionReferences({
    @ActionReference(path = "Menu/Tools", position = 0)
})
@Messages("CTL_ImportFromCVS=ImportarCVS")
public final class ImportFromCVS implements ActionListener {

    private final CSVImporter context;

    public ImportFromCVS(CSVImporter context) {
        this.context = context;
    }
    
    @Override
    public void actionPerformed(ActionEvent ev) {
        // TODO use context
        context.csvToLocalData();
    }
}
